﻿/*****************************************************************//**
 * @file   VAOneXMLAdaptorSubsystems.h
 * @brief  VAOne读写SEA子系统适配器
 *
 * @author lilongyuan (lilongyuan@diso.cn)
 * @date   2025-02-08
 *********************************************************************/
#ifndef VAONEXMLADAPTORSUBSYSTEMS_H
#define VAONEXMLADAPTORSUBSYSTEMS_H

#include "FITKAbstractVAOneXMLAdaptor.h"

namespace IO
{
    /**
     * @brief   VAOne读写SEA子系统适配器
     * @author  lilongyuan (lilongyuan@diso.cn)
     * @date    2025-02-08
     */
    class FITKVAOneXMLIOAPI VAOneXMLAdaptorSubsystems : public FITKAbstractVAOneXMLAdaptor
    {
        FITKCLASS(IO, VAOneXMLAdaptorSubsystems);
    public:
        /**
         * @brief   构造函数
         * @author  lilongyuan (lilongyuan@diso.cn)
         * @date    2025-02-08
         */
        explicit VAOneXMLAdaptorSubsystems() = default;
        /**
         * @brief   析构函数
         * @author  lilongyuan (lilongyuan@diso.cn)
         * @date    2025-02-08
         */
        ~VAOneXMLAdaptorSubsystems() = default;
        /**
         * @brief   适配器读数据
         * @return  是否执行成功
         * @author  lilongyuan (lilongyuan@diso.cn)
         * @date    2025-02-08
         */
        virtual bool adaptR() override;
        /**
         * @brief   适配器写数据
         * @return  是否执行成功
         * @author  lilongyuan (lilongyuan@diso.cn)
         * @date    2025-02-08
         */
        virtual bool adaptW() override;
    private:
        /**
         * @brief     写出SEA梁子系统数据接口
         * @param[i]  node Model节点
         * @return    是否执行成功
         * @author    lilongyuan (lilongyuan@diso.cn)
         * @date      2025-02-11
         */
        bool writeSEABeam(rapidxml::xml_node<char>* node);
        /**
         * @brief     写出SEA板子系统数据接口
         * @param[i]  node Model节点
         * @return    是否执行成功
         * @author    lilongyuan (lilongyuan@diso.cn)
         * @date      2025-02-11
         */
        bool writeSEAShell(rapidxml::xml_node<char>* node);
        /**
         * @brief     写出SEA声腔子系统数据接口
         * @param[i]  node Model节点
         * @return    是否执行成功
         * @author    lilongyuan (lilongyuan@diso.cn)
         * @date      2025-02-11
         */
        bool writeSEACavity(rapidxml::xml_node<char>* node);
    };
    Register2FITKIOAdaptorFactory(VAOneXML, Subsystems, VAOneXMLAdaptorSubsystems)
}

#endif // VAONEXMLADAPTORSUBSYSTEMS_H


